  <script type="text/javascript" src="../Public/js/ajax.js"></script>
 <style>
 #my_int{overflow:hidden; word-wrap:break-word;}
 
 </style>
 <include file="Mobile:nav"/>      
 <div class="head3">
		 <div class="portrait_box">
			 <div class="portrait">
				  <div class="basic">
					 <img src="{$avatar}" style="border-radius:50%" height="100" alt="" />
				     <p id="realname">{$username}</p>
				 </div>

				 <div class="detailed" style="display:none; overflow-y:auto; height:150px;">
					 <p>毕业院校：{$school}</p>
				     <p>设计经验：
                        <?php  $_result=M("Type")->field("*")->where("parentid=25")->select(); foreach($_result as $key=>$r){ echo $experience==$r['typeid'] ?  $r['name']: ' '; }?>
                     </p>
					 <p>擅长空间：
                          <?php $itemType=explode(",",$itemType); ?>
                          <YP:list name="Label" where="genre=17" key="k" id="r" limit="50">
                          {if $k!=1}<?php echo in_array($r['id'],$itemType) ? ' | ' : '';?>{/if}
                          <?php echo in_array($r['id'],$itemType) ? $r['title'] : '';?>
                          </YP:list>
                      </p>
					 <p>所在地：{$province|jgarea=###} {$city|jgarea=###}</p>
					 <p>收费标准：
                         <YP:list name="Type" order="typeid" where="keyid=34" id="val" limit="50">
                            <?php echo $charge == $val['typeid'] ? $val['name'] : ''; ?>
                         </YP:list>㎡
                        </p>
					 <p>证书奖励：{$reward |str_cut=###,50}</p>
					 <p id="my_int">自我评价：{$my_introduce |str_cut=###,100}</p>
				 </div>

				 
			   <span class="icon2"></span>
			 </div>
		 </div>
		  <a href="javascript:history.go(-1)"><span class="icon1"></span></a>
	 </div>

	 <div class="S_contect P_color S_info">
		 <div class="clear">
			 <div class="online">
				 <a href="index.php?g=Mobile&m=Guestbookadd&a=index&designid={$id}">
                     <div class="center clear">
                         <span class="icon3"></span>
                         <p>在线预约</p>
                     </div>
				 </a>
			 </div>
			 <div class="phone">
				 <a href="tel:{$Hotline}" style="border-radius:10px;">
                     <div class="center clear">
                         <span class="icon4"></span>
					      <p><em>客服热线：</em><br/><strong>{$Hotline}</strong></p>
                     </div>
					 
				 </a>
			 </div> 
		 </div>

		 <div class="peak_tread clear">
			 <dl>
			<a href="index.php?g=User&m=Index&a=eva_post&like=1&mm=User&id={$id}">	 <dt>
					 <span style="float:none" class="icon5"></span>
				 </dt>
				 <dd>{$like_num}</dd></a>
			 </dl>
			 <dl>
				<a href="index.php?g=User&m=Index&a=eva_post&haet=1&mm=User&id={$id}">	  <dt>
					 <span style="float:none" class="icon6"></span>
				 </dt>
			<dd>{$haet_num}</dd></a>
			 </dl>
			 <dl class="no_border">
				<a href="javascript:onclick=keep({$id})" id="keep_u" name="{$userid}">
                <dt>
					 <span style="float:none" class="icon7"></span>
				 </dt>
				  <dd>{$keep_num}</dd>
               </a>
			 </dl>
		 </div>
	 </div>


     <div class="S_works">
         <div class="S_title P_color clear">
             <h3>TA的作品<em>({$case_count})</em></h3>
             <span></span>
         </div>

         <div class="works sb_up" >
             
           <div id="ta_case">  
            {if $case} 
             <volist name="case" id="r" key="k">
                     <div class="section P_color">
                         <a href="index.php?g=Mobile&m=Case&a=show&id={$r.id}" class="clear">
                             <div class="pic">
                                 <img src="{$r.pic}" alt="" />
                             </div>
                             <div class="info" style="margin-top:30px">
                                 <div class="title">{$r.title}</div>
                                 <p>{$r.describe}</p>
                                 <div class="sb_icon clear">
                                     <span class="icon8 icon_com"></span>
                                     <em>{$r.hits}</em>
                                     <span class="icon9 icon_com"></span>
                                     <em>{$r.com_num}</em>
                                 </div>
                             </div>
                         </a>
                     </div>
                     </volist>
            {else} 他还没发布作品{/if}
           </div>
             {if $case_count>4}
                 <div class="P_mod_btn" id="page_case">
                   <a href="index.php?g=Mobile&m=Homepage&a=index&id={$id}&p=1">点击加载下4条</a>
                 </div>
             {/if}
     </div>
     
    
     </div>
     
     

     <div class="S_note">
         <div class="S_title P_color clear">
             <h3>TA的帖子<em>({$theme_count})</em></h3>
             <span></span>
         </div>

         <div class="note P_color sb_up" id="ta_theme">
            {if $list_theme}
                      <volist name="list_theme" id="r">
                 <div class="section" style="margin-top:10px; border-bottom:#666 solid 1px;">
                     <a href="index.php?g=Mobile&m=Zforum_reply&a=index&id={$r['id']}&plateid={$r['plateid']}">
                         <h3>{$r['title']|str_cut=###,30}</h3>
                         <div class="sb_icon clear">
                             <span class="icon8 icon_com"></span>
                             <em>{$r['hits']}</em>
                             <span class="icon9 icon_com"></span>
                             <em>{$r['reply_num']}</em>
                         </div>
    
                         <i class="time">{$r.createtime|toDate=###,'Y/m/d'}</i>
                     </a>
                 </div>
              </volist>
             
            {else}
                    他还未开始发帖
            {/if}  
         </div>
         {if $theme_count>4}
                 <div class="P_mod_btn" id="page_theme">
                   <a href="index.php?g=Mobile&m=Homepage&a=theme&id={$id}&p=1">点击加载下4条</a>
                 </div>
             {/if}
     </div>

     <div class="S_comment">
         <div class="S_title P_color clear">
             <h3>业主评论<em>({$comment_count})</em></h3>
             <span></span>
         </div>
         

         <ul class="comment_list sb_up">
            <div id="ta_comment">         
              {if $comment}
                    <volist name="comment" id="val">
                         <li class="clear">
                             <div class="pic">
                                <a href="index.php?g=Mobile&m=Homepage&a=index&id={$val['userid']}"><img class="wind_header" src="{$val['avatar']}" /></a>
                             </div>
                             <div class="info">
                                 <strong><a href="index.php?g=Mobile&m=Homepage&a=index&id={$val['userid']}">{$val['username']}</a></strong>
                                 <span>{$val.createtime|toDate=###,'m-d H:i:s'}</span>
                                 <em>说：</em>
                                 <p class="mes">{$val['content']}</p>
                             </div>
                         </li>
                   </volist>  
               {else}
                    还没有评论
              {/if} 
              </div>
              
         </ul>
            {if $comment_count>4}
             <div class="P_mod_btn" id="page_comment">
               <a href="index.php?g=Mobile&m=Homepage&a=comment&id={$id}&p=1">点击加载下4条</a>
             </div> 
            {/if}
     </div>
     
     
     
     
     <script type="text/javascript">
//收藏
function  keep(id){
	
	
		  var module='User';
		  var url=window.location.search;
		  url='index.php'+url;
		  var title=document.getElementById('realname').innerHTML;
		  var userid=$("#keep_u").attr('name');
		 // alert(userid)
	 $.post(
				  'index.php?g=User&m=Index&a=keep', 
				  {'id':id,
				   'module':module,
				   'url':url,
				   'title':title,
				   
				  },
				  function(res){
					 if(res.length>1000){
						 alert('您还未登录，请您先登录');
						 } else{
							 alert(res);
							  if(res=='收藏成功!'){
							  var keepnum=parseInt($(".keep_n").html())+1;
							  $(".keep_n").html(keepnum);
							  }
					 }
					 
				});
	  
	}


</script>